package com.example.mymvp3.model;

import com.example.mymvp3.bean.SendBean;
import com.example.mymvp3.presenter.CallBackTaskResponse;

import java.util.Random;

public class TaskModel extends BaseModel implements IFTaskModel<SendBean>{



    @Override
    public void queryData(String requestParam, CallBackTaskResponse<SendBean> callBackTaskResponse) {
        SendBean sendBean = new SendBean();
        sendBean.setMsg(new Random().nextInt(100)+"\n");
        sendBean.setTime(System.currentTimeMillis()+"");
        if (callBackTaskResponse !=null) {
            callBackTaskResponse.callBackData(sendBean);
        }
    }
}
